PostgreSQL
Creation of the Orchestra Database
-
Start the PostgreSQL console as the root user:
psql -h localhost -U root -p 5432 -
Create an Orchestra database:
CREATE DATABASE ORCHESTRA; -
Create a user for Orchestra:
CREATE USER ORCHESTRA WITH PASSWORD 'ORCHESTRA';warningThe password of the ORCHESTRA database user should be changed for security reasons!
-
Grant all rights of the database to the user:
GRANT ALL PRIVILEGES ON DATABASE ORCHESTRA TO ORCHESTRA; -
Log out as the root user:
\q -
Log in as the Orchestra user:
psql -h localhost -U orchestra -p 5432 -
Switch to the Orchestra database:
\c orchestra -
Copy the folder containing the PostgreSQL upgrade statement scripts (.../Database/Scripts/PostgreSQL) and the folder containing the statement execution script (.../Database/Scripts/PostgreSQL_Other) from the Orchestra CD to your system.
-
Adapt any path occurrences in the script install_all.sql, which can be found in the copied /PostgreSQL_Other folder. The paths must refer to the copied /PostgreSQL folder, which includes the statements.
-
Finally, invoke this script with:
\i install_all.sql